<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE CPP, Trustworthy #-}</span><span>
</span><span id="line-2"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-3"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-4"></span><span class="hs-comment">-- Module      :  Data.Array.MArray.Safe</span><span>
</span><span id="line-5"></span><span class="hs-comment">-- Copyright   :  (c) The University of Glasgow 2001</span><span>
</span><span id="line-6"></span><span class="hs-comment">-- License     :  BSD-style (see the file libraries/base/LICENSE)</span><span>
</span><span id="line-7"></span><span class="hs-comment">--</span><span>
</span><span id="line-8"></span><span class="hs-comment">-- Maintainer  :  libraries@haskell.org</span><span>
</span><span id="line-9"></span><span class="hs-comment">-- Stability   :  experimental</span><span>
</span><span id="line-10"></span><span class="hs-comment">-- Portability :  non-portable (uses Data.Array.Base)</span><span>
</span><span id="line-11"></span><span class="hs-comment">--</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- An overloaded interface to mutable arrays.  For array types which can be</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- used with this interface, see &quot;Data.Array.IO&quot;, &quot;Data.Array.ST&quot;,</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- and &quot;Data.Array.Storable&quot;.</span><span>
</span><span id="line-15"></span><span class="hs-comment">-- .</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- Safe API only of &quot;Data.Array.MArray&quot;.</span><span>
</span><span id="line-17"></span><span class="hs-comment">--</span><span>
</span><span id="line-18"></span><span class="hs-comment">-- @since 0.4.0.0</span><span>
</span><span id="line-19"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-20"></span><span>
</span><span id="line-21"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Data.Array.MArray.Safe</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-22"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Class of mutable array types</span></span><span>
</span><span id="line-23"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#MArray"><span class="hs-identifier">MArray</span></a></span><span class="hs-special">,</span><span>       </span><span class="hs-comment">-- :: (* -&gt; * -&gt; *) -&gt; * -&gt; (* -&gt; *) -&gt; class</span><span>
</span><span id="line-24"></span><span>
</span><span id="line-25"></span><span>    </span><span class="annot"><span class="hs-comment">-- * The @Ix@ class and operations</span></span><span>
</span><span id="line-26"></span><span>    </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="../../base/src/Data.Ix.html#"><span class="hs-identifier">Data.Ix</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-27"></span><span>
</span><span id="line-28"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Constructing mutable arrays</span></span><span>
</span><span id="line-29"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#newArray"><span class="hs-identifier">newArray</span></a></span><span class="hs-special">,</span><span>     </span><span class="hs-comment">-- :: (MArray a e m, Ix i) =&gt; (i,i) -&gt; e -&gt; m (a i e)</span><span>
</span><span id="line-30"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#newArray_"><span class="hs-identifier">newArray_</span></a></span><span class="hs-special">,</span><span>    </span><span class="hs-comment">-- :: (MArray a e m, Ix i) =&gt; (i,i) -&gt; m (a i e)</span><span>
</span><span id="line-31"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#newListArray"><span class="hs-identifier">newListArray</span></a></span><span class="hs-special">,</span><span> </span><span class="hs-comment">-- :: (MArray a e m, Ix i) =&gt; (i,i) -&gt; [e] -&gt; m (a i e)</span><span>
</span><span id="line-32"></span><span>
</span><span id="line-33"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Reading and writing mutable arrays</span></span><span>
</span><span id="line-34"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#readArray"><span class="hs-identifier">readArray</span></a></span><span class="hs-special">,</span><span>    </span><span class="hs-comment">-- :: (MArray a e m, Ix i) =&gt; a i e -&gt; i -&gt; m e</span><span>
</span><span id="line-35"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#writeArray"><span class="hs-identifier">writeArray</span></a></span><span class="hs-special">,</span><span>   </span><span class="hs-comment">-- :: (MArray a e m, Ix i) =&gt; a i e -&gt; i -&gt; e -&gt; m ()</span><span>
</span><span id="line-36"></span><span>
</span><span id="line-37"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Derived arrays</span></span><span>
</span><span id="line-38"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#mapArray"><span class="hs-identifier">mapArray</span></a></span><span class="hs-special">,</span><span>     </span><span class="hs-comment">-- :: (MArray a e' m, MArray a e m, Ix i) =&gt; (e' -&gt; e) -&gt; a i e' -&gt; m (a i e)</span><span>
</span><span id="line-39"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#mapIndices"><span class="hs-identifier">mapIndices</span></a></span><span class="hs-special">,</span><span>   </span><span class="hs-comment">-- :: (MArray a e m, Ix i, Ix j) =&gt; (i,i) -&gt; (i -&gt; j) -&gt; a j e -&gt; m (a i e)</span><span>
</span><span id="line-40"></span><span>
</span><span id="line-41"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Deconstructing mutable arrays</span></span><span>
</span><span id="line-42"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#getBounds"><span class="hs-identifier">getBounds</span></a></span><span class="hs-special">,</span><span>    </span><span class="hs-comment">-- :: (MArray a e m, Ix i) =&gt; a i e -&gt; m (i,i)</span><span>
</span><span id="line-43"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#getElems"><span class="hs-identifier">getElems</span></a></span><span class="hs-special">,</span><span>     </span><span class="hs-comment">-- :: (MArray a e m, Ix i) =&gt; a i e -&gt; m [e]</span><span>
</span><span id="line-44"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#getAssocs"><span class="hs-identifier">getAssocs</span></a></span><span class="hs-special">,</span><span>    </span><span class="hs-comment">-- :: (MArray a e m, Ix i) =&gt; a i e -&gt; m [(i, e)]</span><span>
</span><span id="line-45"></span><span>
</span><span id="line-46"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Conversions between mutable and immutable arrays</span></span><span>
</span><span id="line-47"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#freeze"><span class="hs-identifier">freeze</span></a></span><span class="hs-special">,</span><span>       </span><span class="hs-comment">-- :: (Ix i, MArray a e m, IArray b e) =&gt; a i e -&gt; m (b i e)</span><span>
</span><span id="line-48"></span><span>    </span><span class="annot"><a href="Data.Array.Base.html#thaw"><span class="hs-identifier">thaw</span></a></span><span class="hs-special">,</span><span>         </span><span class="hs-comment">-- :: (Ix i, IArray a e, MArray b e m) =&gt; a i e -&gt; m (b i e)</span><span>
</span><span id="line-49"></span><span>  </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-50"></span><span>
</span><span id="line-51"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Ix.html#"><span class="hs-identifier">Data.Ix</span></a></span><span>
</span><span id="line-52"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Array.Base.html"><span class="hs-identifier">Data.Array.Base</span></a></span><span class="hs-cpp">
#ifdef __HADDOCK__
</span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Array.IArray</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-57"></span></pre></body></html>